#!/bin/bash

# This is a script to generate the postinst and postrm scripts for the Debian package
# Usage: process_package_script <script_template> <script output> <package name> <installation path>

input=$1; shift
output=$1; shift
package_name=$1; shift
install_path=$1; shift

sed "s|@PACKAGE_NAME@|\"$package_name\"|g;s|@INSTALL_PATH@|\"$install_path\"|g;" <$input >$output
